--TEST--
Check for jsonschema vali string
--SKIPIF--

<?php
if (!extension_loaded("jsonschema")) {
    print "skip";
}
?>
--FILE--
<?php
echo 'double:';
$value = 123.321;
$jsonSchema = new JsonSchema(json_encode($value));

echo ($jsonSchema->validate('{"type":"number","default":0,"minimum":0,"maximum":2147483647,"exclusiveMinimum":0,"exclusiveMaximum":2147483647}')), PHP_EOL;

echo 'integer:';
$value = 123;
$jsonSchema = new JsonSchema(json_encode($value));

echo assert($jsonSchema->validate('{"type":"integer","default":0,"minimum":0,"maximum":2147483647,"exclusiveMinimum":0,"exclusiveMaximum":2147483647}')), PHP_EOL;
?>
--EXPECT--
double:1
integer:1